package com.chenyue.cm.base.bean;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Origin
 */
@Data
public class Pageable {

	private int pageIndex;

	private int pageSize;

	private Map<String, Object> pageSearch;

	private Map<String, Boolean> pageOrderParam = new HashMap<>();

	public Pageable(int pageIndex, int pageSize) {
		super();
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
	}

	public Pageable(int pageIndex, int pageSize, Map<String, Object> pageSearch) {
		super();
		this.pageIndex = pageIndex;
		this.pageSize = pageSize;
		this.pageSearch = pageSearch;
	}

}
